<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>广告申请</title>
</head>
<body>
	<s:form id="add_ad_form" action="ad_addAd.go" namespace="/control/book">
			<input type="hidden" name="ad.book.id" value="${ad.id }"></input>
			<input type="hidden" name="ad.flag" value="100"></input>
			<input type="hidden" name="ad.name" value="${ad.name }"></input>
			<input type="hidden" name="ad.logo" value="${ad.logo }"></input>
			<dl style="overflow: hidden;width: 650px;border-bottom: 1px dashed gray;margin-bottom: 10px;">
				<dt style="float: left; margin-right: 10px;">
					<img alt="${ad.name}" src="${ad.logo}" width="100">
				</dt>
				<dd >书籍名称：<a>${ad.name}</a></dd>
				<dd>
					<input type="hidden" name="message" value="${ad.word}">
					<s:if test="ad.flag==100"><font color="#ff9933">等待审核<BR/></font> </s:if>
					<s:if test="ad.flag==200"><font color="#0099ff">同意申请<BR/></font></s:if>
					<s:if test="ad.flag==300"><font color="#ff0000">拒绝申请<BR/></font></s:if>
					<s:if test="ad.flag==0">
						留言：
						<textarea name="ad.word" style="width: 500px;height: 100px;" >
						</textarea><br/>
					</s:if>
					<s:else>
						${ad.word}
					</s:else>
					
				</dd>
			</dl>
		<input type="button" value="确定" onclick="ajaxFormSubmit('#right_content_sell','#add_ad_form')"/>
	</s:form>
</body>
</html>